Skip to content

查询重采请求详情

离线刷脸业务中,偶尔会出现前期采集头像质量不高,导致算法升级后,旧的头像无法生成有效的人脸特征,影响用户使用刷脸服务。因此,需要对用户的头像进行重采。

请求参数类型描述
collection_idstring重采ID
php
$instance->v3->offlineface->faceCollections->_collection_id_->getAsync([
  'collection_id' => 'FC2353ZJIHOJKHOIIOIJ',
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance->chain('v3/offlineface/face-collections/{collection_id}')->getAsync([
  'collection_id' => 'FC2353ZJIHOJKHOIIOIJ',
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance['v3/offlineface/face-collections/{collection_id}']->getAsync([
  'collection_id' => 'FC2353ZJIHOJKHOIIOIJ',
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$response = $instance->v3->offlineface->faceCollections->_collection_id_->get([
  'collection_id' => 'FC2353ZJIHOJKHOIIOIJ',
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/offlineface/face-collections/{collection_id}')->get([
  'collection_id' => 'FC2353ZJIHOJKHOIIOIJ',
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/offlineface/face-collections/{collection_id}']->get([
  'collection_id' => 'FC2353ZJIHOJKHOIIOIJ',
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典类型描述
collection_idstring重采ID
use_idstring用户ID
organization_idstring机构ID
collection_statestring重采状态
COLLECTION_REQUIRED | PHOTO_UPLOADED | COMPLETE 枚举值之一
register_photo_upload_timestring注册照上传时间
confirm_timestring支付用户确认时间

参阅 官方文档

Published on the GitHub by TheNorthMemory